package com.mybar.subject.application.controller;

import com.mybar.subject.infer.basic.entity.SubjectCategory;
import com.mybar.subject.infer.basic.service.SubjectCategoryService;
import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 刷题controller
 *
 * @auther Levi
 * @date 2024/7/12

 */
@RestController
public class SubjectController {
    //@RequestMapping(value = "/home/test", method = RequestMethod.POST)

    @Resource
    private SubjectCategoryService subjectCategoryService;
    @GetMapping("/test")
    public String test(){
        SubjectCategory subjectCategory = subjectCategoryService.queryById(1L);
        return subjectCategory.getCategoryName();
    }
}
